package com.hzlx.controller;/*
 *@author liu
 *2024/07/2024/7/29
 *@version
 */

import com.hzlx.common.ResponseBean;
import com.hzlx.service.CustomerBankCardService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @Author UP
 * @Date 2024/7/29 11:51
 * @Version 1.0
 **/
@Controller
@RequestMapping("/customer_bank_card")
public class CunsomerBankCardController {
    @Autowired
    private CustomerBankCardService customerBankCardService;

    @ResponseBody
    @GetMapping("/getCardListByCustomerId")
    public ResponseBean getCardListByCustomerId(Integer customerId, Model model) {
        return customerBankCardService.getByCustomerId(customerId,model);
    }
}
